﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link href="~/Content/css/member.css" rel="stylesheet" />
    <link href="~/Content/css/main.css" rel="stylesheet" />
    <link href="http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <title>系统</title>
</head>
<body>
    <!--顶部-->
    <div id="navbar" class="navbar">
        <div id="navbar-conten" class="navbar-conten">
            <div class="navbar-left">
                <a href="#" class="navbar-log">
                    <small>
                        <i class="fa fa-leaf"></i>
                        Member
                    </small>
                </a>
            </div>

            <div class="navbar-right">
                <ul class="navbar-nav">
                    <li class="light-blue">
                        @if (Session["user"] != null) { 
                         Member.Model.Admin admin=Session["user"] as Member.Model.Admin;
                        <a href="#">
                            <img src="~/Content/img/user.jpg" class="user-photo" />
                            <span class="user-info">
                                <small>欢迎 </small>
                                @admin.admin_name
                            </span>
                            <i class="icon fa fa-caret-down"></i>
                        </a>
                        }
                        else
                        {
                            Response.Redirect("/Admin/Login");
                        }
                        <ul class="user-msg">
                            <li>
                                <a href="/Admin/outlogin">
                                    <i class="icon fa fa-power-off"></i>
                                    注销
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!--顶部结束-->
    <!--container start-->
    <div id="main-container" class="main-container">
        <!--left sidebar star-->

        <div id="sidebar" class="sidebar">
            <!--快捷键-->
            <div id="sidebar-shortcuts" class="sidebar-shortcuts">
                <div id="sidebar-shortcuts-large" class="sidebar-shortcuts-large">
                    <button class="btn btn-success">
                        <i class="icon fa fa-home"></i>
                    </button>
                    <button class="btn btn-info">
                        <i class="ace-icon fa fa-pencil"></i>
                    </button>
                    <button class="btn btn-warning">
                        <i class="ace-icon fa fa-users"></i>
                    </button>
                    <button class="btn btn-danger">
                        <i class="ace-icon fa fa-cogs"></i>
                    </button>
                </div>
                <div id="sidebar-shortcuts-mini" class="sidebar-shortcuts-mini">
                    <span class="btn btn-success"></span>

                    <span class="btn btn-info"></span>

                    <span class="btn btn-warning"></span>

                    <span class="btn btn-danger"></span>
                </div>
            </div>
            <!--导航操作-->
            <ul class="nav-list">
                <li>
                    <a href="#">
                        <i class="menu-icon fa fa-cog"></i>
                        <span class="menu-text" style="">基础配置</span>
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>
                    <ul class="submenu">
                        <li>
                            <a href="/UsersMange/index">
                                <i class="menu-icon fa fa-users"></i>
                                <span class="menu-text">用户管理</span>
                            </a>
                        </li>
                        <li>
                            <a href="/Prices/index">
                                <i class="menu-icon fa fa-users"></i>
                                <span class="menu-text">价格管理</span>
                            </a>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="#">
                        <i class="menu-icon fa fa-bars"></i>
                        <span class="menu-text" style="">应用功能</span>
                        <b class="arrow fa fa-angle-down"></b>
                    </a>
                    <b class="arrow"></b>
                    <ul class="submenu">
                        <li>
                            <a href="#">
                                <i class="menu-icon fa fa-users"></i>
                                <span class="menu-text">测试1</span>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <i class="menu-icon fa fa-users"></i>
                                <span class="menu-text">测试2</span>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!--收缩按钮-->
            <div class="sidebar-toggle" id="sidebar-collapse">
                <i id="sidebar-toggle-icon" class="icon fa fa-angle-double-left"></i>
            </div>
        </div>
        <!--中间展示-->
        <div class="main-content">
            <!--目录地址-->
            <div id="breadcrumbs" class="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="fa fa-home home-icon"></i>
                        <a href="/Page/Index">Home</a>
                    </li>
                    @if (ViewData["active"] != null)
                    {
                        <li class="active">
                            @ViewData["active"].ToString()
                        </li>
                    }
                </ul>
            </div>
            <!--目录地址结束-->
            <div class="page-content">
                <div class="row">
                    @RenderBody()
                </div>
            </div>
            <!--中间展示结束-->
            <!--left sidebar end-->

        </div>
        </div>
    <!--container end-->
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/muban.js"></script>
    <script src="~/Content/layer/layer.js"></script>
    @RenderSection("Js", false)
    @if (ViewData["active"] != null)
    { 
    <script type="text/javascript">
    $(function () {
        function action() {
            var active = '@ViewData["active"].ToString()';
            $(".menu-text").each(function (i) {
                if ($(this).text() == active) {
                    $(this).parent().parent().addClass("active").parent().parent().addClass("open");
                }
            })
        }
        action();
    });
    </script>
    }
</body>
</html>

